<?php
defined('_JEXEC') or die;

jimport('joomla.database.table');

class TableApp extends JTable{
	public   $id = null;
	public   $dev_id = null;
	public   $name = null;
	public   $category_id  = null;
	public   $price  = null;
	public   $avg_rate = 0;
	public   $rating_count = 0;
	public   $description = 0;
	public   $create_date = null;
	public   $modify_date = null;
	public   $view_count = 0;
	public   $download_count  = 0;
	public   $content_rating_id = null;
	public   $is_published  = 0;
	public   $is_deleted  = 0;
	function __construct (& $db){
		parent::__construct('aas_app', 'id', $db);
		//gan gia tri mac dinh
		$create_date = JFactory::getDate()->toMySQL();
		$modify_date = JFactory::getDate()->toMySQL();
	//	$user = JFactory::getUser();
		//$dev_id = $user->id;
	}
}